package com.xubeizhi.service;

import com.xubeizhi.common.PageBean;
import com.xubeizhi.common.Result;
import com.xubeizhi.dto.ArticleDto;
import com.xubeizhi.entity.Article;

public interface ArticleService {
    Result createArticle(Article article);


    Result listArticleInfo(Integer pageNum,Integer pageSize);

    Result getArticleById(Integer id);

    Result updateArticle(Article article);

    Result deleteArticle(Integer id);

    Result SearchArticle(String content,String status);

    Result<PageBean<ArticleDto>> listArticles(Integer pageNum, Integer pageSize, Integer categoryId, String status);

    Result deleteByArticle(Article article);

}
